from django.contrib import admin
from django.urls import path, include
from .views import ArticleAPIView, SearchAPIView, PublishAPIView
from rest_framework_simplejwt.views import (
    TokenObtainPairView,
    TokenRefreshView,
)

app_name = 'article'

urlpatterns = [
    path("get", ArticleAPIView.as_view(), name="article-get"),
    path("search", SearchAPIView.as_view(), name="article-search"),
    path("publish", PublishAPIView.as_view(), name="article-publish")
]
